package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap37 extends OSMap
	{
		public function OSMap37()
		{
			super();

			var ground:OSGround = new OSGround(0, 400, 20, 500, 0, false);
			ground.setNoErosionDown([24]);
			ground.setNoErosionLeft([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]);
			ground.setNoErosionRight([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(0, 900, 960, 180, 0, false);
			ground.setNoErosionUp([0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]);
			ground.setNoErosionDown([384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431]);
			ground.setNoErosionLeft([0, 48, 96, 144, 192, 240, 288, 336, 384]);
			ground.setNoErosionRight([47, 95, 143, 191, 239, 287, 335, 383, 431]);
			ground.erode();
			add(ground);

			ground = new OSGround(0, 340, 180, 20, -45, false);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(160, 280, 260, 20, 0, false);
			ground.setNoErosionDown([11]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(380, 300, 20, 320, 0, false);
			ground.setNoErosionUp([0]);
			ground.setNoErosionDown([15]);
			ground.setNoErosionRight([7, 8, 9, 10, 11, 12, 13, 14, 15]);
			ground.erode();
			add(ground);

			ground = new OSGround(380, 620, 580, 280, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28]);
			ground.setNoErosionDown([377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405]);
			ground.setNoErosionRight([28, 57, 86, 115, 144, 173, 202, 231, 260, 289, 318, 347, 376, 405]);
			ground.erode();
			add(ground);

			ground = new OSGround(400, 440, 560, 180, 0, false);
			ground.setNoErosionUp([3, 11, 13, 14, 15, 17, 25]);
			ground.setNoErosionDown([224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251]);
			ground.setNoErosionLeft([0, 28, 56, 84, 112, 140, 168, 196, 224]);
			ground.setNoErosionRight([27, 55, 83, 111, 139, 167, 195, 223, 251]);
			ground.erode();
			add(ground);

			ground = new OSGround(450, 390, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);
			
			var bouncePillar:OSEntity = new OSEntity(NOTHING, 480, 410); // +30 +20
			bouncePillar.makeGraphic(10, 40, 0xff000000);
			addBackground(bouncePillar);
			
			bouncePillar = new OSEntity(NOTHING, 600, 410); // +150 + 20
			bouncePillar.makeGraphic(10, 40, 0xff000000);
			addBackground(bouncePillar);
			
			ground = new OSGround(660, 360, 60, 80, 0, false);
			ground.setNoErosionDown([9, 10, 11]);
			ground.erode();
			add(ground);

			ground = new OSGround(730, 390, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);
			
			bouncePillar = new OSEntity(NOTHING, 760, 410); // +30 +20
			bouncePillar.makeGraphic(10, 40, 0xff000000);
			addBackground(bouncePillar);
			
			bouncePillar = new OSEntity(NOTHING, 880, 410); // +150 + 20
			bouncePillar.makeGraphic(10, 40, 0xff000000);
			addBackground(bouncePillar);
		}
	}
}
